﻿from django.template import Library

register = Library()

def fileman_media_prefix():
    """
    Returns the string contained in the setting Fileman MEDIA_URL.
    """
    try:
        from fileman.settings import MEDIA_URL
    except ImportError:
        return ''
    return MEDIA_URL

fileman_media_prefix = register.simple_tag(fileman_media_prefix)    